//
//  DYRightCollectionViewCell.m
//  DYHospital
//
//  Created by 胡金东 on 16/3/24.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import "DYRightCollectionViewCell.h"
#import "Masonry.h"



@implementation DYRightCollectionViewCell

-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        if (self.hosNameLabel == nil) {
            self.hosNameLabel = [[UILabel alloc]init];
            self.hosNameLabel.textAlignment = NSTextAlignmentCenter;
            self.hosNameLabel.font = [UIFont systemFontOfSize:16];
            [self.hosNameLabel sizeToFit];
            [self.contentView addSubview:self.hosNameLabel];
            [self.hosNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
                make.height.mas_equalTo (@40);
            }];
            
        }
        [self addSubview:self.hosNameLabel];
    }
    return self;
}


+(CGSize)cellSize
{
    return CGSizeMake([UIScreen mainScreen].bounds.size.width - 100 - 10 * 3, 40);
}

@end
